import service from "../service";

// 上传文件
export const uploadFile = (params) =>
  service({
    url: "/api/file/update",
    method: "post",
    data: params,
    headers: { "Content-Type": "multipart/form-data" },
  });

  // 获取上传文件
export const getUploadFile = (params) =>
service({
  url: `/api/file?fileId=${params.fileId}`,
  method: "get",
  data: params,
});

export const getValid = (params) =>
service({
  url: `/api/user/code`,
  method: "post",
  data: params,
});
